% LaTeX Template for Project Report, Version 2.0
% (Abstracted from a Major Project Report at CSED, NIT Calicut but can be
% modified easily to use for other reports also.)
%
% Released under Creative Commons Attribution license (CC-BY)
% Info: http://creativecommons.org/licenses/by/3.0/
%
% Created by: Kartik Singhal
% BTech CSE Batch of 2009-13
% NIT Calicut
% Contact Info: kartiksinghal@gmail.com
%
% It is advisable to learn the basics of LaTeX before using this template.
% A good resource to start with is http://en.wikibooks.org/wiki/LaTeX/
%
% All template fields are marked with a pair of angular brackets e.g. <title here>
% except for the ones defining citation names in ref.tex.
%
% Empty space after chapter/section/subsection titles can be used to insert text.
%
% Just compile this file using pdflatex after making all required changes.
\documentclass[12pt,a4paper]{report}

% For algorithm
\usepackage{algorithm}
\usepackage[noend]{algpseudocode}

\usepackage[utf8]{inputenc}
\usepackage[french,british]{babel}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{verbatim}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{afterpage}
\usepackage{indentfirst}
\usepackage{setspace}
\usepackage{geometry}
 \geometry{
 a4paper,
% total={210mm,297mm},
 left=35mm,
 right=25mm,
 top=25mm,
 bottom=25mm,
 }


\let\oldlistofalgorithms\listofalgorithms
\renewcommand{\listofalgorithms}{%
  \begingroup%
  \let\oldnumberline\numberline%
  \renewcommand{\numberline}{Algorithm~\oldnumberline}%
  \oldlistofalgorithms%
  \endgroup}

\usepackage[pdftex]{graphicx} %for embedding images
\usepackage{url} %for proper url entries
\usepackage[bookmarks, colorlinks=false, pdfborder={0 0 0}, pdftitle={Sgd pour la classification d'image}, pdfauthor={Quoc-Khai NGUYEN}, pdfsubject={Sgd pour la classification d'image}, pdfkeywords={sgd}]{hyperref} %for creating links in the pdf version and other additional pdf attributes, no effect on the printed document
%\usepackage[final]{pdfpages} %for embedding another pdf, remove if not required
\usepackage{fancyhdr}
\pagestyle{fancy}

\fancyhead[L]{}

\onehalfspacing

\newlength\mylen
\newcommand\myinput[1]{%
  \settowidth\mylen{\KwIn{}}%
  \setlength\hangindent{\mylen}%
  \hspace*{\mylen}#1\\}


\begin{document}

\begin{otherlanguage}{french}

%\renewcommand\bibname{References}

%include other pages
\input{./title.tex}
\input{./certificate.tex}
\input{./remerciement}
\pagenumbering{arabic} %reset numbering to normal for the main content

\cleardoublepage  % \clearpage (if using single side)
\phantomsection
\addcontentsline{toc}{chapter}{Table des matières} \raggedbottom \pagebreak \thispagestyle{empty}
\tableofcontents


\input{./abstract.tex}

\cleardoublepage
\phantomsection
\input{./introduction.tex} %literature survey included in this
\input{./recherche.tex}
\input{./implementation.tex}
\input{./experiment.tex}

\cleardoublepage
\phantomsection
\input{./conclusion.tex}

\cleardoublepage
\phantomsection
\input{./ref.tex}

\cleardoublepage  % \clearpage (if using single side)
\phantomsection
\addcontentsline{toc}{chapter}{\listfigurename} \raggedbottom \pagebreak \thispagestyle{empty}
\listoffigures

\cleardoublepage  % \clearpage (if using single side)
\phantomsection
\addcontentsline{toc}{chapter}{\listtablename} \raggedbottom \pagebreak \thispagestyle{empty}
\listoftables

\cleardoublepage  % \clearpage (if using single side)
\phantomsection
\renewcommand{\listalgorithmname}{Liste des algorithmes}
\addcontentsline{toc}{chapter}{\listalgorithmname} \raggedbottom \pagebreak \thispagestyle{empty}
\listofalgorithms
\addtocontents{loa}{\def\string\figurename{Algorithm}}

\end{otherlanguage}

\end{document}
